package com.qdxht.dispenser.http.model;

import org.json.JSONException;
import org.json.JSONObject;

public class MqttResponse {
    public String operation;
    public String uuid;
    public String mainboardCode;
    public String result;
    public String msg;

    public JSONObject toJson() {
        JSONObject obj = new JSONObject();
        try {
            obj.put("operation", operation);
            obj.put("uuid", uuid);
            obj.put("mainboardCode", mainboardCode);
            obj.put("result", result);
            obj.put("msg", msg);
        } catch (JSONException e) {
            // ignore
        }
        return obj;
    }
} 